<?php

namespace App\Http\Controllers;

use App\Common\Sql;

class FuncSwitch extends Base
{

    public function logic()
    {
        $data = array();
        $row  = Sql::select('t_func_switch_conf');
        foreach ($row as $info) {
            $func               = array();
            $func['id']         = (int)$info['id'];
            $func['status']     = (int)$info['status'];
            $func['name']       = $info['name'];
            $data["func_arr"][] = $func;
        }
        return $this->returnData($data);
    }
}

